package org.example.springcloud.service;

import org.example.springcloud.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 8/2/21 9:34 AM
 * @Version: 1.0
 */
@FeignClient(value = "seata-account-service")
public interface AccountService {
    /**
     * 扣减账户余额
     */
    @RequestMapping("/account/decrease")
    public ResultVO decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}